package com.cetc39.service.impl;

import java.util.List;

import com.cetc39.bean.NodeSource;
import com.cetc39.dao.NodeSourceDao;
import com.cetc39.service.NodeSourceService;

public class NodeSourceServiceImpl implements NodeSourceService {
	
	private NodeSourceDao nodeSourceDao;
	
	@Override
	public void add(NodeSource ns) {
		nodeSourceDao.save(ns);
	}

	@Override
	public void update(NodeSource ns) {
		nodeSourceDao.update(ns);
	}

	@Override
	public List<?> findAll() {
		return nodeSourceDao.findAll();
	}

	@Override
	public NodeSource findById(int id) {
		return nodeSourceDao.findById(id);
	}

	@Override
	public void delete(int id) {
		nodeSourceDao.delete(id);
	}

	public void setNodeSourceDao(NodeSourceDao nodeSourceDao) {
		this.nodeSourceDao = nodeSourceDao;
	}

}
